package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.LklMerchantSet;
import com.xmy.cultivate.entity.LklMerchantTeacher;
import com.xmy.cultivate.mapper.LklMerchantTeacherMapper;
import com.xmy.cultivate.service.ILklMerchantTeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-21
 */
@Service
public class LklMerchantTeacherServiceImpl extends ServiceImpl<LklMerchantTeacherMapper, LklMerchantTeacher> implements ILklMerchantTeacherService {

    @Autowired
    LklMerchantTeacherMapper lklMerchantTeacherMapper;

    @Override
    public IPage<LklMerchantTeacher> getLklMerchantTeacherList(IPage<LklMerchantTeacher> page, String subjectsId, String name, String id, String yearPart, String quarterNum) {
        IPage<LklMerchantTeacher> lklMerchantTeacherList = lklMerchantTeacherMapper.getLklMerchantTeacherList(page, subjectsId, name, id, yearPart, quarterNum);
        return lklMerchantTeacherList;
    }

    @Override
    public IPage<LklMerchantSet> getLklMerchantTeacherListDetails(IPage<LklMerchantSet> page, String yearPart, String quarterNum, Long teacherId, String name) {

        return lklMerchantTeacherMapper.getLklMerchantTeacherListDetails(page, yearPart, quarterNum, teacherId, name);
    }

    @Override
    public String getMerchantName(Long merchatId) {
        return lklMerchantTeacherMapper.getMerchantName(merchatId);
    }

    @Override
    public LklMerchantTeacher existLklMerchantTeacher(Long teacherId) {
        return lklMerchantTeacherMapper.existLklMerchantTeacher(teacherId);
    }
}
